home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 August / MW 8 2003 CD1.iso / Inside Macworld / Product News / gimp-1.2.4.sit / gimp-1.2.4 / devel-docs / libgimp / tmpl / gimpwidgets.sgml < prev    next >
Encoding:
SGML Document  |  2003-05-20  |  8.1 KB  |  500 lines

  1. <!-- ##### SECTION Title ##### -->
  2. gimpwidgets
  3.  
  4. <!-- ##### SECTION Short_Description ##### -->
  5. A collection of convenient widget constructors, standard callbacks and
  6. helper functions.
  7.  
  8. <!-- ##### SECTION Long_Description ##### -->
  9. <para>
  10.  
  11. </para>
  12.  
  13. <!-- ##### SECTION See_Also ##### -->
  14. <para>
  15.  
  16. </para>
  17.  
  18. <!-- ##### FUNCTION gimp_option_menu_new ##### -->
  19. <para>
  20.  
  21. The @va_list describing the #GtkMenuItem's has the following format:
  22.  
  23. <informaltable pgwide=1 frame="none" role="struct">
  24. <tgroup cols="2"><colspec colwidth="4*"><colspec colwidth="8*">
  25. <tbody>
  26.  
  27. <row>
  28. <entry>#gchar *label,</entry>
  29. <entry>The menu item's label.</entry>
  30. </row>
  31.  
  32. <row>
  33. <entry>#GtkSignalFunc callback,</entry>
  34. <entry>The callback which will be connected to the menu item's
  35. "activate" signal</entry>
  36. </row>
  37.  
  38. <row>
  39. <entry>#gpointer data,</entry>
  40. <entry>The callback data which will be used in gtk_signal_connect().</entry>
  41. </row>
  42.  
  43. <row>
  44. <entry>#gpointer user_data,</entry>
  45. <entry>The menu item's @user_data which will be set with
  46. gtk_object_set_user_data().</entry>
  47. </row>
  48.  
  49. <row>
  50. <entry>#GtkWidget **widget_ptr,</entry>
  51. <entry>A pointer to store the created menu item in.</entry>
  52. </row>
  53.  
  54. <row>
  55. <entry>#gboolean active,</entry>
  56. <entry>#TRUE if this should be the initially selected menu item.</entry>
  57. </row>
  58.  
  59. </tbody></tgroup></informaltable>
  60.  
  61. </para>
  62.  
  63. @menu_only: 
  64. @Varargs: 
  65. @Returns: 
  66.  
  67.  
  68. <!-- ##### FUNCTION gimp_option_menu_new2 ##### -->
  69. <para>
  70.  
  71. The @va_list describing the #GtkMenuItem's has the following format:
  72.  
  73. <informaltable pgwide=1 frame="none" role="struct">
  74. <tgroup cols="2"><colspec colwidth="4*"><colspec colwidth="8*">
  75. <tbody>
  76.  
  77. <row>
  78. <entry>#gchar *label,</entry>
  79. <entry>The menu item's label.</entry>
  80. </row>
  81.  
  82. <row>
  83. <entry>#gpointer user_data,</entry>
  84. <entry>The menu item's @user_data which will be set with
  85. gtk_object_set_user_data().</entry>
  86. </row>
  87.  
  88. <row>
  89. <entry>#GtkWidget **widget_ptr,</entry>
  90. <entry>A pointer to store the created menu item in.</entry>
  91. </row>
  92.  
  93. </tbody></tgroup></informaltable>
  94.  
  95. </para>
  96.  
  97. @menu_only: 
  98. @menu_item_callback: 
  99. @data: 
  100. @initial: 
  101. @Varargs: 
  102. @Returns: 
  103.  
  104.  
  105. <!-- ##### FUNCTION gimp_option_menu_set_history ##### -->
  106. <para>
  107.  
  108. </para>
  109.  
  110. @option_menu: 
  111. @user_data: 
  112.  
  113.  
  114. <!-- ##### FUNCTION gimp_radio_group_new ##### -->
  115. <para>
  116.  
  117. The @va_list describing the #GtkRadioButton's has the following format:
  118.  
  119. <informaltable pgwide=1 frame="none" role="struct">
  120. <tgroup cols="2"><colspec colwidth="4*"><colspec colwidth="8*">
  121. <tbody>
  122.  
  123. <row>
  124. <entry>#gchar *label,</entry>
  125. <entry>The radio button's label.</entry>
  126. </row>
  127.  
  128. <row>
  129. <entry>#GtkSignalFunc callback,</entry>
  130. <entry>The callback which will be connected to the radio button's
  131. "toggled" signal</entry>
  132. </row>
  133.  
  134. <row>
  135. <entry>#gpointer data,</entry>
  136. <entry>The callback data which will be used in gtk_signal_connect().</entry>
  137. </row>
  138.  
  139. <row>
  140. <entry>#gpointer user_data,</entry>
  141. <entry>The radio button's @user_data which will be set with
  142. gtk_object_set_user_data().</entry>
  143. </row>
  144.  
  145. <row>
  146. <entry>#GtkWidget **widget_ptr,</entry>
  147. <entry>A pointer to store the created radio button in.</entry>
  148. </row>
  149.  
  150. <row>
  151. <entry>#gboolean active,</entry>
  152. <entry>#TRUE if this should be the initially pressed radio button.</entry>
  153. </row>
  154.  
  155. </tbody></tgroup></informaltable>
  156.  
  157. </para>
  158.  
  159. @in_frame: 
  160. @frame_title: 
  161. @Varargs: 
  162. @Returns: 
  163.  
  164.  
  165. <!-- ##### FUNCTION gimp_radio_group_new2 ##### -->
  166. <para>
  167.  
  168. The @va_list describing the #GtkRadioButton's has the following format:
  169.  
  170. <informaltable pgwide=1 frame="none" role="struct">
  171. <tgroup cols="2"><colspec colwidth="4*"><colspec colwidth="8*">
  172. <tbody>
  173.  
  174. <row>
  175. <entry>#gchar *label,</entry>
  176. <entry>The radio button's label.</entry>
  177. </row>
  178.  
  179. <row>
  180. <entry>#gpointer user_data,</entry>
  181. <entry>The radio button's @user_data which will be set with
  182. gtk_object_set_user_data().</entry>
  183. </row>
  184.  
  185. <row>
  186. <entry>#GtkWidget **widget_ptr,</entry>
  187. <entry>A pointer to store the created radio button in.</entry>
  188. </row>
  189.  
  190. </tbody></tgroup></informaltable>
  191.  
  192. </para>
  193.  
  194. @in_frame: 
  195. @frame_title: 
  196. @radio_button_callback: 
  197. @data: 
  198. @initial: 
  199. @Varargs: 
  200. @Returns: 
  201.  
  202.  
  203. <!-- ##### FUNCTION gimp_spin_button_new ##### -->
  204. <para>
  205.  
  206. </para>
  207.  
  208. @adjustment: 
  209. @value: 
  210. @lower: 
  211. @upper: 
  212. @step_increment: 
  213. @page_increment: 
  214. @page_size: 
  215. @climb_rate: 
  216. @digits: 
  217. @Returns: 
  218.  
  219.  
  220. <!-- ##### FUNCTION gimp_scale_entry_new ##### -->
  221. <para>
  222.  
  223. </para>
  224.  
  225. @table: 
  226. @column: 
  227. @row: 
  228. @text: 
  229. @scale_usize: 
  230. @spinbutton_usize: 
  231. @value: 
  232. @lower: 
  233. @upper: 
  234. @step_increment: 
  235. @page_increment: 
  236. @digits: 
  237. @constrain: 
  238. @unconstrained_lower: 
  239. @unconstrained_upper: 
  240. @tooltip: 
  241. @help_data: 
  242. @Returns: 
  243. <!-- # Unused Parameters # -->
  244. @private_tip: 
  245.  
  246.  
  247. <!-- ##### MACRO GIMP_SCALE_ENTRY_LABEL ##### -->
  248. <para>
  249. Returns the scale_entry's #GtkLabel.
  250. </para>
  251.  
  252. @adj: The #GtkAdjustment returned by gimp_scale_entry_new().
  253.  
  254.  
  255. <!-- ##### MACRO GIMP_SCALE_ENTRY_SCALE ##### -->
  256. <para>
  257. Returns the scale_entry's #GtkHScale.
  258. </para>
  259.  
  260. @adj: The #GtkAdjustment returned by gimp_scale_entry_new().
  261.  
  262.  
  263. <!-- ##### MACRO GIMP_SCALE_ENTRY_SCALE_ADJ ##### -->
  264. <para>
  265. Returns the #GtkAdjustment of the scale_entry's #GtkHScale.
  266. </para>
  267.  
  268. @adj: The #GtkAdjustment returned by gimp_scale_entry_new().
  269.  
  270.  
  271. <!-- ##### MACRO GIMP_SCALE_ENTRY_SPINBUTTON ##### -->
  272. <para>
  273. Returns the scale_entry's #GtkSpinButton.
  274. </para>
  275.  
  276. @adj: The #GtkAdjustment returned by gimp_scale_entry_new().
  277.  
  278.  
  279. <!-- ##### MACRO GIMP_SCALE_ENTRY_SPINBUTTON_ADJ ##### -->
  280. <para>
  281. Returns the #GtkAdjustment of the scale_entry's #GtkSpinButton.
  282. </para>
  283.  
  284. @adj: The #GtkAdjustment returned by gimp_scale_entry_new().
  285.  
  286.  
  287. <!-- ##### FUNCTION gimp_random_seed_new ##### -->
  288. <para>
  289.  
  290. </para>
  291.  
  292. @seed: 
  293. @use_time: 
  294. @time_true: 
  295. @time_false: 
  296. @Returns: 
  297.  
  298.  
  299. <!-- ##### MACRO GIMP_RANDOM_SEED_SPINBUTTON ##### -->
  300. <para>
  301. Returns the random_seed's #GtkSpinButton.
  302. </para>
  303.  
  304. @hbox: The #GtkHBox returned by gimp_random_seed_new().
  305.  
  306.  
  307. <!-- ##### MACRO GIMP_RANDOM_SEED_SPINBUTTON_ADJ ##### -->
  308. <para>
  309. Returns the #GtkAdjustment of the random_seed's #GtkSpinButton.
  310. </para>
  311.  
  312. @hbox: The #GtkHBox returned by gimp_random_seed_new().
  313.  
  314.  
  315. <!-- ##### MACRO GIMP_RANDOM_SEED_TOGGLEBUTTON ##### -->
  316. <para>
  317. Returns the random_seed's #GtkToggleButton.
  318. </para>
  319.  
  320. @hbox: The #GtkHBox returned by gimp_random_seed_new().
  321.  
  322.  
  323. <!-- ##### FUNCTION gimp_coordinates_new ##### -->
  324. <para>
  325.  
  326. </para>
  327.  
  328. @unit: 
  329. @unit_format: 
  330. @menu_show_pixels: 
  331. @menu_show_percent: 
  332. @spinbutton_usize: 
  333. @update_policy: 
  334. @chainbutton_active: 
  335. @chain_constrains_ratio: 
  336. @xlabel: 
  337. @x: 
  338. @xres: 
  339. @lower_boundary_x: 
  340. @upper_boundary_x: 
  341. @xsize_0: 
  342. @xsize_100: 
  343. @ylabel: 
  344. @y: 
  345. @yres: 
  346. @lower_boundary_y: 
  347. @upper_boundary_y: 
  348. @ysize_0: 
  349. @ysize_100: 
  350. @Returns: 
  351.  
  352.  
  353. <!-- ##### MACRO GIMP_COORDINATES_CHAINBUTTON ##### -->
  354. <para>
  355. Returns the #GimpChainButton which is attached to the #GimpSizeEntry.
  356. </para>
  357.  
  358. @sizeentry: The #GimpSizeEntry returned by gimp_coordinates_new().
  359.  
  360.  
  361. <!-- ##### FUNCTION gimp_mem_size_entry_new ##### -->
  362. <para>
  363.  
  364. </para>
  365.  
  366. @adjustment: 
  367. @Returns: 
  368.  
  369.  
  370. <!-- ##### MACRO GIMP_MEM_SIZE_ENTRY_SPINBUTTON ##### -->
  371. <para>
  372.  
  373. </para>
  374.  
  375. @memsize: 
  376.  
  377.  
  378. <!-- ##### MACRO GIMP_MEM_SIZE_ENTRY_SPINBUTTON_ADJ ##### -->
  379. <para>
  380.  
  381. </para>
  382.  
  383. @memsize: 
  384.  
  385.  
  386. <!-- ##### MACRO GIMP_MEM_SIZE_ENTRY_OPTIONMENU ##### -->
  387. <para>
  388.  
  389. </para>
  390.  
  391. @memsize: 
  392.  
  393.  
  394. <!-- ##### FUNCTION gimp_pixmap_button_new ##### -->
  395. <para>
  396.  
  397. </para>
  398.  
  399. @xpm_data: 
  400. @text: 
  401. @Returns: 
  402.  
  403.  
  404. <!-- ##### FUNCTION gimp_toggle_button_sensitive_update ##### -->
  405. <para>
  406.  
  407. </para>
  408.  
  409. @toggle_button: 
  410.  
  411.  
  412. <!-- ##### FUNCTION gimp_toggle_button_update ##### -->
  413. <para>
  414.  
  415. </para>
  416.  
  417. @widget: 
  418. @data: 
  419.  
  420.  
  421. <!-- ##### FUNCTION gimp_radio_button_update ##### -->
  422. <para>
  423.  
  424. </para>
  425.  
  426. @widget: 
  427. @data: 
  428.  
  429.  
  430. <!-- ##### FUNCTION gimp_menu_item_update ##### -->
  431. <para>
  432.  
  433. </para>
  434.  
  435. @widget: 
  436. @data: 
  437.  
  438.  
  439. <!-- ##### FUNCTION gimp_int_adjustment_update ##### -->
  440. <para>
  441.  
  442. </para>
  443.  
  444. @adjustment: 
  445. @data: 
  446.  
  447.  
  448. <!-- ##### FUNCTION gimp_uint_adjustment_update ##### -->
  449. <para>
  450.  
  451. </para>
  452.  
  453. @adjustment: 
  454. @data: 
  455.  
  456.  
  457. <!-- ##### FUNCTION gimp_float_adjustment_update ##### -->
  458. <para>
  459.  
  460. </para>
  461.  
  462. @adjustment: 
  463. @data: 
  464.  
  465.  
  466. <!-- ##### FUNCTION gimp_double_adjustment_update ##### -->
  467. <para>
  468.  
  469. </para>
  470.  
  471. @adjustment: 
  472. @data: 
  473.  
  474.  
  475. <!-- ##### FUNCTION gimp_unit_menu_update ##### -->
  476. <para>
  477.  
  478. </para>
  479.  
  480. @widget: 
  481. @data: 
  482.  
  483.  
  484. <!-- ##### FUNCTION gimp_table_attach_aligned ##### -->
  485. <para>
  486.  
  487. </para>
  488.  
  489. @table: 
  490. @column: 
  491. @row: 
  492. @label_text: 
  493. @xalign: 
  494. @yalign: 
  495. @widget: 
  496. @colspan: 
  497. @left_align: 
  498.  
  499.  
  500.